﻿export default {
  mode: "hash",
  showSpinner: true,
  routes: [
    {
      path: "/warn/:code",
      name: "warn",
      component: () => import("@/views/Warn.vue"),
      meta: { title: "错误提示", publicAccess: true, allowAnonymous: true },
    },
    {
      path: "/index",
      name: "index",
      component: () => import("@/views/Index.vue"),
      meta: { title: "", publicAccess: true, },
    },
    {
      path: "",
      name: "root",
      redirect: "/index"
    },
    {
      path: "/connection",
      name: "connection",
      component: () => import("@/views/connection/Index.vue"),
      meta: { title: "数据库连接" }
    },
    {
      path: "/command",
      name: "command",
      component: () => import("@/views/command/Index.vue"),
      meta: { title: "SQL命令" }
    },
    {
      path: "/command/item/:name",
      name: "commandItem",
      component: () => import("@/views/command/Item.vue"),
      meta: { title: "SQL命令编辑" }
    },
    {
      path: "/dataView",
      name: "dataView",
      component: () => import("@/views/dataView/Index.vue"),
      meta: { title: "数据视图" }
    },
    {
      path: "/dataView/item/:name",
      name: "dataViewItem",
      component: () => import("@/views/dataView/Item.vue"),
      meta: { title: "编辑数据视图" }
    },
    {
      path: "/dataForm",
      name: "dataForm",
      component: () => import("@/views/dataForm/Index.vue"),
      meta: { title: "数据表单" }
    },
    {
      path: "/dataForm/item/:name",
      name: "dataFormItem",
      component: () => import("@/views/dataForm/Item.vue"),
      meta: { title: "编辑数据表单" }
    },
    {
      path: "/version",
      name: "version",
      component: () => import("@/views/version/Index.vue"),
      meta: { title: "SQL命令版本" }
    },
    {
      path: "/publish",
      name: "publish",
      component: () => import("@/views/publish/Index.vue"),
      meta: { title: "发布记录" }
    },
    {
      path: "/excelExporter",
      name: "excelExporter",
      component: () => import("@/views/excelExporter/Index.vue"),
      meta: { title: "Excel导出设置" }
    },
    {
      path: "/excelExporter/item/:name",
      name: "excelExporterItem",
      component: () => import("@/views/excelExporter/Item.vue"),
      meta: { title: "Excel导出设置" }
    },
    {
      path: "/excelImporter",
      name: "excelImporter",
      component: () => import("@/views/excelImporter/Index.vue"),
      meta: { title: "Excel导入设置" }
    },
    {
      path: "/excelImporter/item/:name",
      name: "excelImporterItem",
      component: () => import("@/views/excelImporter/Item.vue"),
      meta: { title: "Excel导入设置" }
    }
  ],
};
